$(function() {
			$("#left").load("../common/gover-left.html");
				var userId = sessionStorage.getItem("userId");
				var applyId = parseQueryString().applyId;
				my_vue = new Vue({
					el: '#vue_info',
					data: {
						apply:{
							commitTimeLimit:"",
							area:"",
							preCode:"",
							cailiaoWay:"",
							cailiaoReturnWay:"",
							legalTimeLimit:"",
							repoName:"",
							expressCode:"",
							repoCode:"",
							dept:"",
							address:'',
							state:'',
							map:{
								notSubmit:[],
								hasSubmit:[]
								},
							createAt:''
						},
						showBz:false,
						grAddress:{
							name:'',
							mobile:'',
							address:''
						}
					},
					methods: {
						doMask: function(op) {
							if(op == '1') {
								window.location = ""
							} else if(op == "2") {

							} else {
								window.location = "feedback.html"
							}
						},
						goBack: function() {
							window.location = "index.html"
						},
						editApply:function(){
							window.location="../gover/selfHelpAttachment.html?applyId="+applyId+"&fromSpace=true";
						},
						getApplyDetail: function() {
							this.$http.get(gover.getApplyDetail, {
								preId: applyId
							}).then(function(result) {
								if(result.data.success) {
									console.log(toJson(result.data));
									this.apply = result.data.data;
									if(isNotEmpty(this.apply.address)){
										var arr = this.apply.address.split(";");
										this.grAddress.name=arr[0];
										this.grAddress.mobile=arr[1];
										this.grAddress.address=arr[2];
									}
									if(this.apply.state.indexOf('补正')>=0){
										this.showBz=true;
									}
								}
								console.log(toJson(result.data));

							}, function() {
								console.log('保存接口失败:' + toJson(result));
							})
						}

					},
					ready: function() {
						//初始化获得总页面数和列表数据
						this.getApplyDetail();
					}
				});
			});